<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <title>初始化代码信息</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
    <link href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.css" rel="stylesheet">
    <link href="laypage/1.2/skin/laypage.css" rel="stylesheet">
</head>
<body>
<input type="text" name="a.b" value="1">
<div id="content"></div>
<div id="page"></div>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/jquery-weui.min.js"></script>
<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/swiper.js"></script>
<script src="https://cdn.bootcss.com/jquery-weui/1.2.0/js/city-picker.js"></script>
<script src="laypage/1.2/laypage.js"></script>
<script src="../../lib/web/ajax/AjaxUtils.js"></script>
<script src="../../lib/web/pager/PagerUtils.js"></script>
<script>
    $(document).ready(function () {
        var config = {
            "url":"data/page.json",
            "param":{"a.b":"1234"},
            "initDataCallBack":function (resp) {
                var html="";
                $.each(resp.data.list,function(i,item){
                    html += "<p>"+item.name+"</p>"
                })
                $("#content").html(html);
            },
            "getMoreDataCallBack":function (resp) {
                var html="";
                $.each(resp.data.list,function(i,item){
                    html += "<p>"+item.name+i+"</p>"
                })
                $("#content").html(html);
            }
        }
        var pager = new PagerUtils(config)
        pager.init();
    })
</script>
</body>
</html>